package io.renren.modules.erp.service.impl;

import java.util.Map;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.erp.dao.CustomerInfoDao;
import io.renren.modules.erp.entity.CustomerInfoEntity;
import io.renren.modules.erp.service.CustomerInfoService;


@Service("customerInfoService")
public class CustomerInfoServiceImpl extends ServiceImpl<CustomerInfoDao, CustomerInfoEntity> implements CustomerInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<CustomerInfoEntity> page = this.selectPage(
                new Query<CustomerInfoEntity>(params).getPage(),
                new EntityWrapper<CustomerInfoEntity>()
        );

        return new PageUtils(page);
    }

}
